﻿using System.ComponentModel.DataAnnotations;
using System.ComponentModel.DataAnnotations.Schema;

namespace Entity.AI.DTO
{
    /// <summary>
    /// 发送给AI的消息
    /// </summary>
    public class AIRequestChat
    {
        /// <summary>
        /// 用户id
        /// </summary>
        [Required(ErrorMessage = "用户userId不能为空")]
        public string userId { get; set; }

        /// <summary>
        /// 信息
        /// </summary>
        [Required(ErrorMessage = "信息message不能为空")]
        public string message { get; set; }

        /// <summary>
        /// token最大值
        /// </summary>
        [Required(ErrorMessage = "token最大值max_new_tokens不能为空")]
        public int max_new_tokens { get; set; }

        /// <summary>
        /// 温度
        /// </summary>
        [Required(ErrorMessage = "温度temperature不能为空")]
        public decimal temperature { get; set; }

    }
}
